package model;


/**
 * Saves the message into the conversation
 * 
 * <p>
 * <ul>
 * <li>Project: 		ChatSystemG3</li>
 * <li>Called by: 		Conversation</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 */
public class ModelMessage {

	/**
	 * Message sender
	 */
	private User sender;			

	
	/**
	 * construct
	 * @param sender Message sender
	 * @param message message sent
	 */
	public ModelMessage(User sender) {
		super();
		this.sender = sender;
	}

	/**
	 * getUser
	 * @return the message sender
	 */
	public User getSender() {
		return sender;
	}

	/**
	 * setSender; Saves the sender of the message
	 * @param sender message sender
	 */
	public void setSender(User sender) {
		this.sender = sender;
	}


	
}
